<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page import="com.hzqy.web.login.SessionKey"%>
<%@ page import="com.hzqy.commons.utils.SystemConfigUtils" %> 
<%@ include file="commons_data.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head> 
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <meta name="page-view-size" content="640*530" /> 
  <title>公告页面</title> 
  <%
String warnUrl =String.valueOf(session.getAttribute("SYS_WARN_URL"));
String warn_pic =String.valueOf(session.getAttribute("SYS_WARN_PIC"));
String cloudTwoPlaneUrl = SystemConfigUtils.getSysConfig(SessionKey.SESSION_SYSTEM_CONFIG.cloud_two_plane_url.getKey());
//校园需去一层目录
// cloudTwoPlaneUrl=cloudTwoPlaneUrl.substring(0,cloudTwoPlaneUrl.lastIndexOf("/"));
// cloudTwoPlaneUrl=cloudTwoPlaneUrl.substring(0,cloudTwoPlaneUrl.lastIndexOf("/")+1);

int jumpFlag=0;
if(warnUrl!=null){
	
}
if(warn_pic!=null){
	warn_pic=cloudTwoPlaneUrl+warn_pic;
}else{
	jumpFlag=1;
	warn_pic="../imgs/system/error.jpg";
}
%>
  <style type="text/css">
body,#bg{
	left:0px;
	right:0px;
	width: 640px;
    height: 530px;
}
</style> 

 </head> 
 <body> 
 <img id="bg" src="<%=warn_pic%>"/>
  <script type="text/javascript">
  var jumpFlag=<%=jumpFlag%>;
  var warnUrl="<%=warnUrl%>";
  window.onload=function(){
	  if(jumpFlag==1){
		  window.location.href=warnUrl;
	  }else{
		  setTimeout(
					function(){
						window.location.href=warnUrl;
					},5000		
			);	  
	  }
  }
</script> 
 </body>
</html>